'use strict';

import React from 'react';
import NewsItemComponent from './NewsItemComponent'

require('styles/news/News.css');

class NewsComponent extends React.Component {

  render() {
  	const {news,handleShowNewsDetail} = this.props;
  	
    return (
      <div >
        {news.map(item => 
        	<NewsItemComponent key={item.id} item={item} handleShowNewsDetail={handleShowNewsDetail}/>
        	)}
      </div>
    );
  }
}

NewsComponent.displayName = 'NewsNewsComponent';

// Uncomment properties you need
NewsComponent.propTypes = {
  news:React.PropTypes.array,
  handleShowNewsDetail:React.PropTypes.func
};
// NewsComponent.defaultProps = {};

export default NewsComponent;
